<style>
    .inner {padding: 10px;}
    .inner .item{clear: both; margin: 0px; border: none; padding: 10px 0px; height: auto; overflow: auto; border-bottom: 1px solid #CCC;}
    .inner .last {border: none;}
    .inner .item .image{float: left; margin-right: 15px; border: 1px solid #CCC;}
    .inner .item .title, .inner .item .title a {font-weight: bold; padding-bottom: 5px; font-size: 14px; color: #D01BAA; text-decoration: none;}
    .inner .item .datetime {line-height: 20px; margin-bottom: 5px; color: #CCC;}
    .inner .item .intro{line-height: 22px;}
</style>
<div id="columns">
    <div id="center_column" class="center_column">
        <div id="left_column" class="column">
            <?php get_cart();?>
            <?php get_manufacturer();?>
        </div>

        <div style="float: right; width: 690px;">
            <div class="breadcrumb bordercolor">
                <div class="breadcrumb_inner">
                    <a href="<?php echo base_url();?>" title="return to Home">Trang chủ</a>
                    <span class="navigation-pipe">&gt;</span>
                    <span class="navigation_page"><a href="<?php echo base_url('san-pham');?>">Tin tức</a></span>
                </div>
            </div>

            <h1>Tin tức&nbsp;<span class="category-product-count">Có tất cả <?php echo count($result); ?> tin tức.</span></h1>

            <ul class="bordercolor list inner">
                <?php foreach($result as $key => $value):
                $url = base_url('tin-tuc/'.url_friendly($value->title).'-d'.$value->news_id.'.html');;
                ?>
                    <li class="item <?php echo $key + 1 == count($result) ? 'last' : '';?>">
                        <div class="image"><a href="<?php echo $url;?>"><img onerror="ImgError(this);" width="180" height="180" src="<?php echo base_url('uploads/news/'.$value->news_id.'/'.md5($value->news_id).'.jpg');?>"/></a></div>
                        <div class="title"><a href="<?php echo $url;?>"><?php echo $value->title;?></a></div>
                        <div class="datetime">Đăng lúc: <?php echo date('d/m/Y H:i', strtotime($value->create_date));?></div>
                        <div class="intro"><?php echo $value->intro;?></div>
                    </li>
                <?php endforeach;?>
            </ul>
        </div>
    </div>
</div>